package com.mall.client.ps;

import java.util.List;
import java.util.Map;

import com.mall.pojo.PsTask;
import com.mall.pojo.PsTaskExample;

public interface PsTaskService {

	int insertPsTask(PsTask psTask);

	List<PsTask> getPsTaskListByExample(PsTaskExample example);

	PsTask getPsTaskByIdAndVersion(Long psTaskId, int version);

	boolean updateByIdAndVersion(Map<String, Object> psTaskMap);

	Integer updatePsTask(PsTask psTask);

	int getNotFinishTaskCountByexample(PsTaskExample exampleCount);

	PsTask getPsTaskById(Long psTaskId);

	Integer getCountByExample(PsTaskExample example);

	Integer getTaskSumByExample(PsTaskExample example);

	PsTask getPsTaskByIpAndStatusAndNum(String psuuid, int statusNew, Integer taskNum, String uuid);

	PsTask getPsTaskByUuid(String uuid);



}
